package com.jt.df.dubbo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

import java.util.concurrent.CountDownLatch;

@SpringBootApplication
@ImportResource("classpath:/spring/demo-dubbo-provider.xml")
@ComponentScan({"com.jt.df.mybatis.conf","com.jt.df.dubbo.demo"})
public class Application {

	public static void main(String[] args) throws InterruptedException {
		SpringApplication.run(new Object[]{Application.class}, args);
		//prevent main thread from exit
		CountDownLatch countDownLatch = new CountDownLatch(1);
		countDownLatch.await();
	}
}
